package es.ats.codington.festival.domain;


/**
 * The Class Visitor.
 */
public class Visitor extends People {
    
	/** The username. */
	private String username;
	
	/** The password. */
	private String password;
	
	/** The i dvisitor. */
	private int iDvisitor;
	
	//Constructors
	/**
	 * Instantiates a new visitor.
	 *
	 * @param name the name
	 * @param lastname the lastname
	 * @param dni the dni
	 * @param mail the mail
	 * @param phone the phone
	 * @param address the address
	 * @param iDpeople the i dpeople
	 * @param username the username
	 * @param password the password
	 * @param iDvisitor the i dvisitor
	 */
	public Visitor(String name, String lastname, String dni, String mail,
			int phone, String address, int iDpeople, String username, String password,
			int iDvisitor) {
		super(name, lastname, dni, mail, phone, address, iDpeople);
		this.username = username;
		this.password = password;
		this.iDvisitor = iDvisitor;
	}
	
	/**
	 * Instantiates a new visitor.
	 *
	 * @param name the name
	 * @param lastname the lastname
	 * @param dni the dni
	 * @param mail the mail
	 * @param phone the phone
	 * @param address the address
	 * @param username the username
	 * @param password the password
	 */
	public Visitor(String name, String lastname, String dni, String mail,
			int phone, String address, String username, String password) {
		super(name, lastname, dni, mail, phone, address);
		this.username = username;
		this.password = password;
	}
	
	
	/**
	 * Default Constructor.
	 */
	public Visitor() {
		super();
	}
	

	//Getters and Setters
	
	/**
	 *  This method obtain the username.
	 *
	 * @return username
	 */
	public String getUsername() {
		return username;
	}


	/**
	 *  This method changes the username.
	 *
	 * @param username the new username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 *  This method obtain the password.
	 *
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 *  This method changes the password.
	 *
	 * @param password the new password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 *  This method obtain the iDvisitor.
	 *
	 * @return iDvisitor
	 */
	public int getiDvisitor() {
		return iDvisitor;
	}


	/**
	 *  This method changes the iDvisitor.
	 *
	 * @param iDvisitor the new i dvisitor
	 */
	public void setiDvisitor(int iDvisitor) {
		this.iDvisitor = iDvisitor;
	}


	
}